﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Workflow.Project
{
    public partial class ShowLog : System.Web.UI.Page
    {
        private PJSearchManager objPJSearchManager = new PJSearchManager();
        private WorkflowManager objWorkflowManager = new WorkflowManager();
        public List<PJLog> resultList = new List<PJLog>();
        protected void Page_Load(object sender, EventArgs e)
        {
            string mold = Request.QueryString["Mold"];
            string name = Request.QueryString["Name"];
            string createDate1 = Request.QueryString["CreateDate1"];
            string createDate2 = Request.QueryString["CreateDate2"];
            string degree = Request.QueryString["Degree"];
            string department = Request.QueryString["Department"];
            string labelType = Request.QueryString["LabelType"];



            string[] degrees = degree.Split(',');
            string[] departments = department.Split(',');
            string[] labelTypes = labelType.Split(',');
            resultList = objPJSearchManager.GetLog(mold, name, createDate1, createDate2, degrees, departments, labelTypes);
        }
    }
}